export function isPromise<T>(o: any): o is Promise<T> {
  return o && typeof o.then === 'function';
}

export function isObject(o: any): o is Object {
  return Object.prototype.toString.call(o) === '[object Object]';
}
